home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2001 May / may_2001.iso / intercd / root / Html / ^CutePage / data1.cab / JsBox_Template / remove_PageletServer.JsBox.pgt < prev    next >
Encoding:
Text File  |  2000-05-12  |  1.5 KB  |  53 lines

  1. ========== Description Part Begin ==========
  2. Title = remove
  3. ProgID = PageletServer.JsBox
  4. LastUpdateTime = 36432.398958333
  5. PreviewPath = _pgtres/
  6. Description = delete the HTML and Javascript code in the input
  7. ========== Description Part End ==========
  8.  
  9. ========== Parameter Part Begin ==========
  10. CheckDigitPara = 50,4,Submit,http://www.cutepage.com,Center,http:,www.cutepage.com
  11. JsBoxType = 9
  12. ========== Parameter Part End ==========
  13.  
  14. ========== Resource Part Begin ==========
  15. Resource Number = 0
  16. ========== Resource Part End ==========
  17.  
  18. ========== HTML Part Begin ==========
  19. Segment Number = 2
  20. Segment Position = script
  21. <SCRIPT LANGUAGE="JavaScript">
  22. function Del(Word) {
  23.     a = Word.indexOf("<");
  24.     b = Word.indexOf(">");
  25.     len = Word.length;
  26.     c = Word.substring(0, a);
  27.     if(b == -1)
  28.         b = a;
  29.     d = Word.substring((b + 1), len);
  30.     Word = c + d;
  31.     tagCheck = Word.indexOf("<");
  32.     if(tagCheck != -1)
  33.     Word = Del(Word);
  34.     return Word;}
  35. function Check(formname){
  36.     ToCheck = document.forms[formname].text.value;
  37.     Checked = Del(ToCheck);
  38.     document.forms[formname].text.value= Checked;
  39.     return true;}
  40. </script>
  41. ===== Segment End =====
  42. Segment Position = cursor
  43. <form name="srctecformremove" action="http://www.cutepage.com" enctype="text/plain" method="post" onsubmit="return Check('srctecformremove')">
  44. <div align="Center">
  45. <textarea cols="50" rows="4" name="text"></textarea>
  46. <br>
  47. <input type="submit" name="button" value="Submit">
  48. </div>
  49. </form>
  50. ===== Segment End =====
  51. ========== HTML Part End ==========
  52.  
  53.